package com.baizhi.appcontroller;

import com.baizhi.entity.CmfzBanner;
import com.baizhi.service.CmfzBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: renpu
 * @Date: 2019/3/6 19:01
 * @Description:
 */
@RestController
@RequestMapping("/App")
public class AppBannerController {

    @Autowired
    private CmfzBannerService bannerService;

    @GetMapping("selectBanner")
    public List<CmfzBanner> selectBaner(){
        return bannerService.selectAppBanner();
    }
}
